|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.BidHistory
public class BidHistory
This class contains the bidding history of a negotiation agent.
| Constructor Summary | |
|---|---|
BidHistory()
Creates an empty bid history. |
|
BidHistory(java.util.List<BidDetails> bids)
Creates a bid history given an array of bids offered by the negotiation agent. |
|
| Method Summary | |
|---|---|
void |
add(BidDetails bid)
Add an offered bid o the history. |
BidHistory |
discountedFilterBetween(double minU,
double maxU,
double minT,
double maxT,
UtilitySpace utilSpace)
Returns the set of bids offered between time instances t1 and t2: (t1, t2] and with a utility in (u1, u2]. |
BidHistory |
filterBetween(double minU,
double maxU,
double minT,
double maxT)
Returns the set of bids offered between time instances t1 and t2: (t1, t2] and with a utility in (u1, u2]. |
BidHistory |
filterBetweenTime(double t1,
double t2)
Returns the set of bids offered between time instances t1 and t2: (t1, t2]. |
BidHistory |
filterBetweenUtility(double minU,
double maxU)
Returns the set of bids with a utility of at least u1 and at most u2: (u1, u2]. |
BidHistory |
filterUtility(double u)
Returns the set of bids with utility u. |
double |
getAverageDiscountedUtility(UtilitySpace utilSpace)
|
double |
getAverageUtility()
|
BidDetails |
getBestBidDetails()
Returns the bid with the highest utility stored in the history. |
BidDetails |
getBestDiscountedBidDetails(UtilitySpace util)
Returns the bid with the highest discounted utility stored in the history. |
BidDetails |
getFirstBidDetails()
Returns the first bid stored in the history |
java.util.List<BidDetails> |
getHistory()
Returns the full history. |
Bid |
getLastBid()
Returns the last bid added to the history. |
BidDetails |
getLastBidDetails()
Returns the last bid details added to the history. |
java.util.List<BidDetails> |
getNBestBids(int count)
Returns a list of the top N bids which the opponent has offered. |
BidDetails |
getRandom()
|
BidDetails |
getRandom(java.util.Random rand)
|
BidDetails |
getWorstBidDetails()
Returns the bid with the lowest utility stored in the history. |
boolean |
isEmpty()
Checks if BidHistory (array) is empty or not. |
int |
size()
|
BidHistory |
sortToTime()
Sorts the bids contained in this BidHistory object on time. |
BidHistory |
sortToUtility()
Sorts the bids contained in this BidHistory object on utility. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BidHistory(java.util.List<BidDetails> bids)
bids - public BidHistory()
| Method Detail |
|---|
public BidHistory filterBetweenTime(double t1,
double t2)
t1 - t2 -
public BidHistory filterBetweenUtility(double minU,
double maxU)
minU - minimum utility.maxU - maximum utility.
public BidHistory filterBetween(double minU,
double maxU,
double minT,
double maxT)
minU - minimum utility.maxU - maximum utility.minT - minimum time.maxT - maximum time.
public BidHistory filterUtility(double u)
u - utility.
public BidHistory discountedFilterBetween(double minU,
double maxU,
double minT,
double maxT,
UtilitySpace utilSpace)
minU - minimum discounted utility.maxU - maximum discounted utility.minT - minimum time.maxT - maximum time.utilSpace - preference profile used to find the discounted utility.
public void add(BidDetails bid)
bid - offered bid.public java.util.List<BidDetails> getHistory()
public BidDetails getLastBidDetails()
public Bid getLastBid()
public BidDetails getFirstBidDetails()
public BidDetails getBestBidDetails()
public BidDetails getBestDiscountedBidDetails(UtilitySpace util)
util - preference profile used to determine the discounted utility of a bid.
public BidDetails getWorstBidDetails()
public java.util.List<BidDetails> getNBestBids(int count)
count - amount of N best bids.
public int size()
public double getAverageUtility()
public double getAverageDiscountedUtility(UtilitySpace utilSpace)
utilSpace - preference profile used to determine the discounted utility of a bid.
public BidHistory sortToUtility()
public BidHistory sortToTime()
public BidDetails getRandom()
public BidDetails getRandom(java.util.Random rand)
rand - random generator.
public boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||